package com.dongdong.bookstore.data;


import com.dongdong.bookstore.module.ums.model.Resource;
import com.dongdong.bookstore.module.ums.service.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 需要校验权限的资源
 * 项目初始阶段的静态数据
 * 如果在这列表中 需要校验用户所拥有此权限才能访问
 * @author chiangkai
 * @date 2021-10-19
 * @email chiangkk@163.com
 */

public class ResourceData {
    
    public static List<Resource> getAll(){
        List<Resource> resources = new ArrayList<>();
        Resource url = new Resource().setId(1000L).setName("测试接口").setUrl("/test");
        resources.add(url);
        return  resources;
    }
    
}
